package handler;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

public class HandlerBuilder {

	final private List<DeformationPoint> points = new ArrayList<DeformationPoint>();
	public HandlerBuilder() {
	}
	
	public PointHandler generatePointHandler() {
		return new PointHandler(points.toArray(new DeformationPoint[points.size()]));
	}
	
	
	
	/**
	 * @return
	 * @see java.util.List#size()
	 */
	public int size() {
		return points.size();
	}
	/**
	 * @return
	 * @see java.util.List#isEmpty()
	 */
	public boolean isEmpty() {
		return points.isEmpty();
	}
	/**
	 * @param o
	 * @return
	 * @see java.util.List#contains(java.lang.Object)
	 */
	public boolean contains(Object o) {
		return points.contains(o);
	}
	/**
	 * @return
	 * @see java.util.List#iterator()
	 */
	public Iterator<DeformationPoint> iterator() {
		return points.iterator();
	}
	/**
	 * @return
	 * @see java.util.List#toArray()
	 */
	public Object[] toArray() {
		return points.toArray();
	}
	/**
	 * @param a
	 * @return
	 * @see java.util.List#toArray(java.lang.Object[])
	 */
	public <T> T[] toArray(T[] a) {
		return points.toArray(a);
	}
	/**
	 * @param e
	 * @return
	 * @see java.util.List#add(java.lang.Object)
	 */
	public boolean add(DeformationPoint e) {
		return points.add(e);
	}
	/**
	 * @param o
	 * @return
	 * @see java.util.List#remove(java.lang.Object)
	 */
	public boolean remove(Object o) {
		return points.remove(o);
	}
	/**
	 * @param c
	 * @return
	 * @see java.util.List#containsAll(java.util.Collection)
	 */
	public boolean containsAll(Collection<?> c) {
		return points.containsAll(c);
	}
	/**
	 * @param c
	 * @return
	 * @see java.util.List#addAll(java.util.Collection)
	 */
	public boolean addAll(Collection<? extends DeformationPoint> c) {
		return points.addAll(c);
	}
	/**
	 * @param index
	 * @param c
	 * @return
	 * @see java.util.List#addAll(int, java.util.Collection)
	 */
	public boolean addAll(int index, Collection<? extends DeformationPoint> c) {
		return points.addAll(index, c);
	}
	/**
	 * @param c
	 * @return
	 * @see java.util.List#removeAll(java.util.Collection)
	 */
	public boolean removeAll(Collection<?> c) {
		return points.removeAll(c);
	}
	/**
	 * @param c
	 * @return
	 * @see java.util.List#retainAll(java.util.Collection)
	 */
	public boolean retainAll(Collection<?> c) {
		return points.retainAll(c);
	}
	/**
	 * 
	 * @see java.util.List#clear()
	 */
	public void clear() {
		points.clear();
	}
	/**
	 * @param o
	 * @return
	 * @see java.util.List#equals(java.lang.Object)
	 */
	public boolean equals(Object o) {
		return points.equals(o);
	}
	/**
	 * @return
	 * @see java.util.List#hashCode()
	 */
	public int hashCode() {
		return points.hashCode();
	}
	/**
	 * @param index
	 * @return
	 * @see java.util.List#get(int)
	 */
	public DeformationPoint get(int index) {
		return points.get(index);
	}
	/**
	 * @param index
	 * @param element
	 * @return
	 * @see java.util.List#set(int, java.lang.Object)
	 */
	public DeformationPoint set(int index, DeformationPoint element) {
		return points.set(index, element);
	}
	/**
	 * @param index
	 * @param element
	 * @see java.util.List#add(int, java.lang.Object)
	 */
	public void add(int index, DeformationPoint element) {
		points.add(index, element);
	}
	/**
	 * @param index
	 * @return
	 * @see java.util.List#remove(int)
	 */
	public DeformationPoint remove(int index) {
		return points.remove(index);
	}
	/**
	 * @param o
	 * @return
	 * @see java.util.List#indexOf(java.lang.Object)
	 */
	public int indexOf(Object o) {
		return points.indexOf(o);
	}
	/**
	 * @param o
	 * @return
	 * @see java.util.List#lastIndexOf(java.lang.Object)
	 */
	public int lastIndexOf(Object o) {
		return points.lastIndexOf(o);
	}
	/**
	 * @return
	 * @see java.util.List#listIterator()
	 */
	public ListIterator<DeformationPoint> listIterator() {
		return points.listIterator();
	}
	/**
	 * @param index
	 * @return
	 * @see java.util.List#listIterator(int)
	 */
	public ListIterator<DeformationPoint> listIterator(int index) {
		return points.listIterator(index);
	}
	/**
	 * @param fromIndex
	 * @param toIndex
	 * @return
	 * @see java.util.List#subList(int, int)
	 */
	public List<DeformationPoint> subList(int fromIndex, int toIndex) {
		return points.subList(fromIndex, toIndex);
	}
	

}
